'use strict';

/**
 * 接口返回消息汇总
 */

// 返回状态码
const RET_CODE_OK = 0;
const RET_CODE_FAIL = 2;//通用错误码
const RET_CODE_FAIL_ = 3;//错误码，前端错误提示使用对话框类组件，方便用户审阅
// common
exports.RET_ERR_PARAM = { code: 1000, msg: '请求参数错误' };
exports.RET_ERR_ILLEGAL = { code: 1001, msg: '非法访问' }; //无鉴权信息
exports.RET_ERR_AUTH = { code: 1002, msg: '用户没有登录或登录超时' }; //TOKEN校验失败
exports.RET_ERR_SIGN = { code: 1003, msg: '签名校验失败' }; //签名校验失败
exports.RET_ERR_UNKNOWN = { code: 1004, msg: '未知错误' };
exports.RET_ERR_SERVER = { code: 1005, msg: '服务端错误' };

exports.RET_AUTH_OK = { code: RET_CODE_OK, msg: '鉴权成功' };
exports.RET_AUTH_ERR_SERVER = { code: 9000, msg: '鉴权失败' };

// user 5
exports.RET_USER_REGISTER_BATCH_OK = { code: RET_CODE_OK, msg: '员工批量导入成功' };
exports.RET_USER_REGISTER_BATCH_ERR_PARAM = { code: 2000, msg: '员工批量导入参数错误【%s】' };

exports.RET_USER_REGISTER_OK = { code: RET_CODE_OK, msg: '员工注册成功' };
exports.RET_USER_REGISTER_ERR_PARAM = { code: 2002, msg: '员工注册参数错误' };
exports.RET_USER_REGISTER_ERR_USER_EXIST = { code: 2003, msg: '员工账号已存在' };
exports.RET_USER_REGISTER_ERR_USER_NO_EXIST = { code: 5004, msg: '员工工号已存在' };
exports.RET_USER_REGISTER_ERR_USER_NOT_VALID = { code: 5002, msg: '员工ID不合法' };
exports.RET_USER_REGISTER_ERR_USER_ID_TOO_LONG = { code: 5003, msg: '员工ID过长(超过32)' };

exports.RET_USER_UPDATE_OK = { code: RET_CODE_OK, msg: '更新信息成功' };
exports.RET_USER_UPDATE_ERR_PARAM = { code: 2005, msg: '更新信息参数错误' };

exports.RET_USER_DELETE_OK = { code: RET_CODE_OK, msg: '删除用户成功' };
exports.RET_USER_DELETE_ERR_PARAM = { code: 2007, msg: '删除用户参数错误' };
exports.RET_USER_DELETE_ERR_USER = { code: 5001, msg: '删除用户参数错误:用户不存在' };

exports.RET_USER_VERIFY_OK = { code: RET_CODE_OK, msg: '审核用户成功' };
exports.RET_USER_VERIFY_ERR_PARAM = { code: 2009, msg: '审核用户参数错误' };

exports.RET_USER_QUERY_OK = { code: RET_CODE_OK, msg: '员工查询成功' };
exports.RET_USER_QUERY_ERR_PARAM = { code: 2011, msg: '员工查询参数错误' };
exports.RET_USER_QUERY_ERR_NOT_EXIST = { code: 2012, msg: '用户信息不存在' };

exports.RET_USER_QUERY_AVATAR_OK = { code: RET_CODE_OK, msg: '查询照片成功' };
exports.RET_USER_QUERY_AVATAR_ERR_PARAM = { code: 2013, msg: '查询照片参数错误' };
exports.RET_USER_QUERY_AVATAR_NOT_EXIST = { code: 2071, msg: '用户信息不存在' };

exports.RET_USER_QUERY_FEATURE_OK = { code: RET_CODE_OK, msg: '查询特征成功' };
exports.RET_USER_QUERY_FEATURE_ERR_PARAM = { code: 2015, msg: '查询特征参数错误' };
exports.RET_USER_QUERY_FEATURE_ERR_NOT_EXIST = { code: 2016, msg: '查询用户不存在' };

exports.RET_USER_MERGE_FEATURE_OK = { code: RET_CODE_OK, msg: '合并特征成功' };
exports.RET_USER_MERGE_FEATURE_ERR_PARAM = { code: 6001, msg: '合并特征参数错误' };
exports.RET_USER_MERGE_FEATURE_ERR_FROM_NOT_EXIST = { code: 6002, msg: '起始用户不存在' };
exports.RET_USER_MERGE_FEATURE_ERR_TO_NOT_EXIST = { code: 6003, msg: '目标用户不存在' };
exports.RET_USER_MERGE_FEATURE_ERR_ERROR_FROM = { code: 6004, msg: '起始用户删除失败' };
exports.RET_USER_MERGE_FEATURE_ERR_TO_FEATURE_MAX_LIMIT = { code: 6005, msg: '目标用户特征已达上限,合并失败' };
exports.RET_USER_MERGE_FEATURE_ERR_MERGE = { code: 6006, msg: '合并特征失败' };

exports.RET_USER_RECOVERY_OK = { code: RET_CODE_OK, msg: '类型还原成功' };
exports.RET_USER_RECOVERY_ERR_PARAM = { code: 6010, msg: '类型还原参数错误' };

// 对app开放
exports.RET_GUEST_REGISTER_OK = { code: RET_CODE_OK, msg: 'APP注册访客成功' };
exports.RET_GUEST_REGISTER_ERR_PARAM = { code: 2018, msg: 'APP注册访客参数错误' };
exports.RET_GUEST_REGISTER_ERR_USER_EXIST = { code: 2019, msg: '访客账号已存在' };

exports.RET_GUEST_DELETE_OK = { code: RET_CODE_OK, msg: 'APP删除访客成功' };
exports.RET_GUEST_DELETE_ERR_PARAM = { code: 2021, msg: 'APP删除访客参数错误' };
exports.RET_GUEST_DELETE_ERR_NOT_EXIST = { code: 2075, msg: 'APP删除访客用户ID不存在' };
exports.RET_GUEST_DELETE_ERR_SERVER = { code: 2022, msg: 'APP删除访客失败' };

exports.RET_USER_UPDATE_AVATAR_OK = { code: RET_CODE_OK, msg: 'APP更新头像成功' };
exports.RET_USER_UPDATE_AVATAR_ERR_PARAM = { code: 2023, msg: 'APP更新头像参数错误' };
exports.RET_USER_UPDATE_AVATAR_ERR_NOT_EXIST = { code: 2024, msg: '用户不存在' };

exports.RET_APP_QUERY_IMAGE_ERR_PARAM = { code: 2072, msg: 'APP查询头像参数错误' };
exports.RET_APP_QUERY_IMAGE_NOT_EXIST = { code: 2073, msg: 'APP查询头像信息不存在' };
exports.RET_APP_QUERY_IMAGE_ERR_SERVER = { code: 2074, msg: 'APP查询头像失败' };

exports.RET_APP_QUERY_IPCS_OK = { code: RET_CODE_OK, msg: 'APP查询IPC列表成功' };

exports.RET_APP_QUERY_PERMIT_OK = { code: RET_CODE_OK, msg: 'APP查询门禁设置成功' };
exports.RET_APP_QUERY_PERMIT_ERR_PARAM = { code: 2077, msg: 'APP查询门禁设置参数错误' };
exports.RET_APP_QUERY_PERMIT_ERR_NOT_EXIST = { code: 2078, msg: 'APP查询门禁设置不存在' };
exports.RET_APP_QUERY_PERMIT_ERR_SERVER = { code: 2079, msg: 'APP查询门禁设置失败' };

// config
exports.RET_CONFIG_ADD_OK = { code: RET_CODE_OK, msg: '新增配置成功' };
exports.RET_CONFIG_ADD_ERR_PARAM = { code: 2026, msg: '新增配置参数错误' };

exports.RET_CONFIG_QUERY_OK = { code: RET_CODE_OK, msg: '查询配置成功' };
exports.RET_CONFIG_QUERY_ERR_PARAM = { code: 2028, msg: '查询配置参数错误' };

exports.RET_CONFIG_DEPT_OK = { code: RET_CODE_OK, msg: '部门配置成功' };
exports.RET_CONFIG_DEPT_ERR_PARAM = { code: 2068, msg: '部门配置参数错误' };
exports.RET_CONFIG_DEPT_ERR_EXIST = { code: 2069, msg: '部门名称已经存在' };
exports.RET_CONFIG_DEPT_ERR_SERVER = { code: 2070, msg: '部门配置失败' };

exports.RET_CONFIG_ENO_QUERY_OK = { code: RET_CODE_OK, msg: '查询网卡接口信息成功' };
exports.RET_CONFIG_ENO_QUERY_ERR_SERVER = { code: 2114, msg: '查询网卡接口信息失败' };

exports.RET_CONFIG_ENO_SETTING_ERR_PARAM = { code: 2115, msg: '更改系统IP参数错误' };
exports.RET_CONFIG_ENO_SETTING_ERR_IP = { code: 2123, msg: '更改系统IP参数IP格式错误' };
exports.RET_CONFIG_ENO_SETTING_ERR_MASK = { code: 2124, msg: '更改系统IP参数子网掩码格式错误' };
exports.RET_CONFIG_ENO_SETTING_ERR_SERVER = { code: 2116, msg: '更改系统IP失败' };
exports.RET_CONFIG_ENO_SETTING_OK = { code: RET_CODE_OK, msg: '更改系统IP成功' };

exports.RET_CONFIG_RESTART_OK = { code: RET_CODE_OK, msg: '重启服务' };
exports.RET_CONFIG_RESTART_ERR_SERVER = { code: 2114, msg: '重启服务失败' };

// record
exports.RET_RECORD_QUERY_OK = { code: RET_CODE_OK, msg: '查询记录成功' };
exports.RET_RECORD_QUERY_ERR_PARAM = { code: 2030, msg: '查询记录参数错误' };

exports.RET_RECORD_QUERY_AVATAR_OK = { code: RET_CODE_OK, msg: '查询照片成功' };
exports.RET_RECORD_QUERY_AVATAR_ERR_PARAM = { code: 2032, msg: '查询照片参数错误' };
exports.RET_RECORD_QUERY_AVATAR_ERR_SERVER = { code: 2033, msg: '查询照片失败' };

exports.RET_RECORD_DELETE_OK = { code: RET_CODE_OK, msg: '删除记录成功' };
exports.RET_RECORD_DELETE_ERR_PARAM = { code: 2034, msg: '删除记录参数错误' };

exports.RET_RECORD_DOWNLOAD_FEATURE_OK = { code: RET_CODE_OK, msg: '特征下载成功' };
exports.RET_RECORD_DOWNLOAD_FEATURE_ERR_PARAM = { code: 2089, msg: '特征下载参数错误' };
exports.RET_RECORD_DOWNLOAD_FEATURE_ERR_NONECAPTURE = { code: 2091, msg: '抱歉，改记录特征不存在' };

// ipc
exports.RET_IPC_QUERY_OK = { code: RET_CODE_OK, msg: '查询IPC成功' };
exports.RET_IPC_QUERY_ERR_PARAM = { code: 2038, msg: '查询IPC参数错误' };
//exports.RET_IPC_QUERY_ERR_SERVER = {code: 2039, msg: '查询IPC失败'};

exports.RET_IPC_ADD_OK = { code: RET_CODE_OK, msg: '增加IPC成功' };
exports.RET_IPC_ADD_ERR_PARAM = { code: 2092, msg: '增加IPC参数错误' };
exports.RET_IPC_ADD_ERR_PARAM_SW = { code: 2093, msg: 'IPC门禁控制器参数错误' };
exports.RET_IPC_ADD_ERR_EXIST = { code: 2094, msg: 'IPC编号已存在' };
exports.RET_IPC_ADD_ERR_CAPTURE = { code: 2102, msg: 'IPC抓拍配置错误' };

exports.RET_IPC_DEL_OK = { code: RET_CODE_OK, msg: '删除IPC成功' };
exports.RET_IPC_DEL_ERR_PARAM = { code: 2095, msg: '删除IPC参数错误' };
exports.RET_IPC_DEL_ERR_NOT_EXIST = { code: 2096, msg: 'IPC不存在' };
exports.RET_IPC_DEL_ERR_CAPTURE = { code: 2103, msg: 'IPC抓拍删除错误' };

exports.RET_IPC_UPDATE_OK = { code: RET_CODE_OK, msg: '修改IPC成功' };
exports.RET_IPC_UPDATE_ERR_PARAM = { code: 2097, msg: '修改IPC参数错误' };
exports.RET_IPC_UPDATE_ERR_NOT_EXIST = { code: 2098, msg: 'IPC不存在' };
exports.RET_IPC_UPDATE_ERR_CAPTURE = { code: 2104, msg: 'IPC抓拍更新错误' };

exports.RET_IPC_RESTART_OK = { code: RET_CODE_OK, msg: '重启IPC成功' };
exports.RET_IPC_RESTART_ERR_PARAM = { code: 2108, msg: '重启IPC参数错误' };
exports.RET_IPC_RESTART_ERR_NOT_EXIST = { code: 2109, msg: 'IPC不存在' };
exports.RET_IPC_RESTART_ERR_CAPTURE = { code: 2110, msg: 'IPC重启错误' };

exports.RET_IPC_STOP_OK = { code: RET_CODE_OK, msg: '停止IPC成功' };
exports.RET_IPC_STOP_ERR_PARAM = { code: 2111, msg: '停止IPC参数错误' };
exports.RET_IPC_STOP_ERR_NOT_EXIST = { code: 2112, msg: 'IPC不存在' };
exports.RET_IPC_STOP_ERR_CAPTURE = { code: 2113, msg: 'IPC停止错误' };

// guard
exports.RET_GUARD_LIST_QUERY_OK = { code: RET_CODE_OK, msg: '查询门禁列表成功' };

exports.RET_GUARD_QUERY_OK = { code: RET_CODE_OK, msg: '查询门禁配置成功' };
exports.RET_GUARD_QUERY_ERR_PARAM = { code: 2099, msg: '查询门禁配置参数错误' };
exports.RET_GUARD_QUERY_ERR_NOT_EXIST = { code: 2100, msg: '门禁配置不存在' };

exports.RET_GUARD_SET_OK = { code: RET_CODE_OK, msg: '门禁设置成功' };
exports.RET_GUARD_DEL_OK = { code: RET_CODE_OK, msg: '门禁删除成功' };
exports.RET_GUARD_SET_ERR_PARAM = { code: 2101, msg: '设置门禁参数错误' };
exports.RET_GUARD_SET_ERR_NOT_EXIST = { code: 2041, msg: '门禁不存在' };

exports.RET_GUARD_USERS_QUERY_OK = { code: RET_CODE_OK, msg: '查询所有用户成功' };
exports.RET_GUARD_USERS_QUERY_ERR_PARAM = { code: 2040, msg: '查询所有用户参数错误' };

exports.RET_GUARD_SET_PERMIT_OK = { code: RET_CODE_OK, msg: '设置门禁权限成功' };
exports.RET_GUARD_SET_PERMIT_ERR_PARAM = { code: 2042, msg: '设置门禁权限参数错误' };
//exports.RET_GUARD_SET_PERMIT_ERR_SERVER = {code: 2043, msg: '设置门禁权限失败'};

exports.RET_GUARD_SET_TIME_OK = { code: RET_CODE_OK, msg: '设置门禁时间成功' };
exports.RET_GUARD_SET_TIME_ERR_PARAM = { code: 2044, msg: '设置门禁时间参数错误' };
//exports.RET_GUARD_SET_TIME_ERR_SERVER = {code: 2045, msg: '设置门禁时间失败'};

// attendance
exports.RET_ATTENDANCE_QUERY_STAT_OK = { code: RET_CODE_OK, msg: '查询考勤统计成功' };
exports.RET_ATTENDANCE_QUERY_STAT_ERR_PARAM = { code: 2046, msg: '查询考勤统计参数错误' };
exports.RET_ATTENDANCE_QUERY_STAT_ERR_MONTH = { code: 3001, msg: '查询考勤统计失败：月份大于当前月份' };
exports.RET_ATTENDANCE_QUERY_STAT_ERR_DEPT = { code: 3002, msg: '查询考勤统计失败：所查部门不存在' };
exports.RET_ATTENDANCE_QUERY_STAT_ERR_CONFIG = { code: 2047, msg: '查询考勤统计失败：部门信息不存在' };

exports.RET_ATTENDANCE_QUERY_DETAIL_OK = { code: RET_CODE_OK, msg: '查询考勤明细成功' };
exports.RET_ATTENDANCE_QUERY_DETAIL_ERR_PARAM = { code: 2048, msg: '查询考勤明细参数错误' };
exports.RET_ATTENDANCE_QUERY_DETAIL_ERR_MONTH = { code: 3101, msg: '查询考勤明细参数错误:月份大于当前月份' };
exports.RET_ATTENDANCE_QUERY_DETAIL_ERR_USER = { code: 3102, msg: '查询考勤明细参数错误:用户不存在' };

exports.RET_ATTENDANCE_RESET_OK = { code: RET_CODE_OK, msg: '重置考勤数据成功' };
exports.RET_ATTENDANCE_RESET_ERR_PARAM = { code: 2050, msg: '重置考勤数据参数错误' };
exports.RET_ATTENDANCE_RESET_ERR_PARAM_MONTH = { code: 2050, msg: '不能重置未来日期考勤' };
exports.RET_ATTENDANCE_RESET_ERR_SERVER = { code: 2051, msg: '重置考勤数据失败' };

// account
exports.RET_ADMIN_LOGIN_OK = { code: RET_CODE_OK, msg: '管理员登录成功' };
exports.RET_ADMIN_LOGIN_ERR_PARAM = { code: 2052, msg: '管理员登录参数错误' };
exports.RET_ADMIN_LOGIN_ERR_AUTH = { code: 2053, msg: '用户名或密码不正确' };

exports.RET_ADMIN_PASSWORD_OK = { code: RET_CODE_OK, msg: '密码修改成功' };
exports.RET_ADMIN_PASSWORD_ERR_PARAM = { code: 2055, msg: '密码修改参数错误' };
exports.RET_ADMIN_PASSWORD_ERR_AUTH = { code: 2056, msg: '用户名或者旧密码不正确' };

exports.RET_ADMIN_QUERY_OK = { code: RET_CODE_OK, msg: '查询账号成功' };
exports.RET_ADMIN_QUERY_ERR_PARAM = { code: 2058, msg: '查询账号参数错误' };

exports.RET_ADMIN_ADD_OK = { code: RET_CODE_OK, msg: '添加账号成功' };
exports.RET_ADMIN_ADD_ERR_PARAM = { code: 2060, msg: '添加账号参数错误' };
exports.RET_ADMIN_ADD_ERR_PARAM_ID_TOO_LONG = { code: 2049, msg: '账号ID过长(超过32)' };
exports.RET_ADMIN_ADD_ERR_PARAM_ID = { code: 2054, msg: '账号ID不合法' };
exports.RET_ADMIN_ADD_ERR_PARAM_EMAIL = { code: 2061, msg: '添加账号邮箱不合法' };
exports.RET_ADMIN_ADD_ERR_EXIST = { code: 2065, msg: '账号已存在' };

exports.RET_ADMIN_UPDATE_OK = { code: RET_CODE_OK, msg: '修改账号成功' };
exports.RET_ADMIN_UPDATE_ERR_PARAM = { code: 2062, msg: '修改账号参数错误' };
exports.RET_ADMIN_UPDATE_ERR_PARAM_EMAIL = { code: 2059, msg: '账号邮箱不合法' };

exports.RET_ADMIN_DELETE_OK = { code: RET_CODE_OK, msg: '删除账号成功' };
exports.RET_ADMIN_DELETE_ERR_PARAM = { code: 2064, msg: '删除账号参数错误' };

exports.RET_ADMIN_RESET_PWD_OK = { code: RET_CODE_OK, msg: '重置密码成功' };
exports.RET_ADMIN_RESET_PWD_ERR_PARAM = { code: 2066, msg: '重置密码参数错误' };
exports.RET_ADMIN_RESET_PWD_ERR_NOT_EXIST = { code: 2067, msg: '账号不存在' };

// stat 5
exports.RET_RECORD_STAT_OK = { code: RET_CODE_OK, msg: '人数统计成功' };
exports.RET_RECORD_STAT_ERR_PARAM = { code: 2036, msg: '人数统计参数错误' };

exports.RET_STAT_TRAFFIC_OK = { code: RET_CODE_OK, msg: '人流量统计成功' };
exports.RET_STAT_TRAFFIC_ERR_PARAM = { code: 2105, msg: '人流量统计参数错误' };
exports.RET_STAT_TRAFFIC_ERR_TIME = { code: 5001, msg: '人流量统计参数错误：起止时间有误' };

// track 4
exports.RET_TRACK_SEARCH_OK = { code: RET_CODE_OK, msg: '追踪查询成功' };
exports.RET_TRACK_SEARCH_ERR_PARAM = { code: 2106, msg: '追踪查询参数错误' };
exports.RET_TRACK_SEARCH_ERR_NOT_EXIST = { code: 2107, msg: '查无此人' };
exports.RET_TRACK_SEARCH_ERR_TIME = { code: 4001, msg: '时间格式错误' };

// 特征批量注册
exports.RET_FEATURE_UPLOAD_OK = { code: RET_CODE_OK, msg: '上传完成' };
exports.RET_FEATURE_UPLOAD_ERR_PARAM = { code: 2071, msg: '请检查上传文件' };

// 特征注册日志下载
exports.RET_DWONLOAD_OK = { code: RET_CODE_OK, msg: '开始下载' }
//exports.RET_DWONLOAD_ERR_SERVER = {code: 2081, msg: '查询失败，服务器错误'}
exports.RET_DWONLOAD_ERR_DOWNLOAD = { code: 2086, msg: '下载错误' }
exports.RET_DWONLOAD_ERR_PARAMS_DOWNLOAD = { code: 2087, msg: '下载路径不存在' }

// 识别服务
exports.RET_RECOG_REGISTER_ERR_PARAM = { code: 2117, msg: '人脸注册参数错误' };
exports.RET_RECOG_REGISTER_OK = { code: RET_CODE_OK, msg: '人脸注册成功' };
exports.RET_RECOG_REGISTER_ERR = { code: 2118, msg: '人脸注册失败' };
exports.RET_RECOG_REGISTER_NO_USER = { code: 2210, msg: '用户不存在' };

exports.RET_RECOG_DELETE_ERR_PARAM = { code: 2119, msg: '特征删除参数错误' };
exports.RET_RECOG_DELETE_OK = { code: RET_CODE_OK, msg: '特征删除成功' };
exports.RET_RECOG_DELETE_ERR = { code: 2120, msg: '特征删除失败' };

exports.RET_RECOG_RECOGNIZE_ERR_PARAM = { code: 2121, msg: '人脸识别参数错误' };
exports.RET_RECOG_RECOGNIZE_ERR_NOT_EXIST = { code: 2122, msg: '查无此人' };
exports.RET_RECOG_RECOGNIZE_OK = { code: RET_CODE_OK, msg: '人脸识别成功' };

// 自定义配置
exports.RET_QUERY_LOGO_SUCCESS = { code: RET_CODE_OK, msg: '查询logo成功' };
exports.RET_QUERY_LOGO_ERR_NOT_EXISTS = { code: 2200, msg: '未配置logo' };
exports.RET_CUSTOM_QUERY_SUCCESS = { code: RET_CODE_OK, msg: '查询自定义配置成功' };
exports.RET_CUSTOM_QUERY_ERR_PARAMS = { code: 2201, msg: '自定义配置查询参数错误' };

exports.RET_CUSTOM_DELETE_SUCCESS = { code: RET_CODE_OK, msg: '删除自定义配置成功' };
exports.RET_CUSTOM_DELETE_ERR_PARAM = { code: 2202, msg: '删除自定义配置参数错误' };
exports.RET_CUSTOM_DELETE_ERR_NOT_EXIST = { code: 2203, msg: '自定义配置不存在' };

exports.RET_CUSTOM_ADD_SUCCESS = { code: RET_CODE_OK, msg: '添加自定义配置成功' };
exports.RET_CUSTOM_ADD_ERR_PARAM = { code: 2204, msg: '自定义配置参数错误' };
exports.RET_CUSTOM_ADD_ERR_CONFLICT = { code: 2205, msg: '自定义配置时间冲突' };

exports.RET_CUSTOM_UPDATE_OK = { code: RET_CODE_OK, msg: '更新自定义配置成功' };
exports.RET_CUSTOM_ADD_ERR_CONFLICT = { code: 2206, msg: '自定义配置时间冲突' };
exports.RET_CUSTOM_UPDATE_ERR_NOT_EXISTS = { code: 2207, msg: '自定义配置不存在' };

exports.RET_QUERY_USERS_SHOW_SUCCESS = { code: RET_CODE_OK, msg: '查询用户显示配置成功' };
exports.RET_QUERY_USERS_SHOW_ERR_NOT_EXISTS = { code: 2208, msg: '查询用户显示配置失败' };

exports.RET_RECORD_CLEAN_OK = { code: RET_CODE_OK, msg: '清空历史记录成功' };
exports.RET_CUSTOM_CLEAN_SUCCESS = { code: RET_CODE_OK, msg: '清空自定义配置成功' };
exports.RET_ATTENDANCE_CLEAN_OK = { code: RET_CODE_OK, msg: '清空考勤记录成功' };
exports.RET_USER_CLEAN_OK = { code: RET_CODE_OK, msg: '清空用户数据成功' };
exports.RET_CACHE_CLEAN_OK = { code: RET_CODE_OK, msg: '清空缓存数据成功' };

exports.RET_RECORD_TO_USER_ERR_NOT_EXISTS = { code: 2209, msg: '陌生人记录转移不存在记录' };
exports.RET_RECORD_TO_USER_ERR_PARAMS = { code: 2210, msg: '陌生人记录转移参数错误' };
exports.RET_RECORD_TO_USER_SUCCESS = { code: RET_CODE_OK, msg: '陌生人记录转移成功' };

exports.REQUEST_SUCCESS = function(msg=''){
    return {
        code: RET_CODE_OK,
        msg
    }
}
exports.REQUEST_ERROR = function(msg=''){
    return {
        code: RET_CODE_FAIL,
        msg
    }
}
exports.REQUEST_ERROR_MODAL = function(msg=''){
    return {
        code: RET_CODE_FAIL_,
        msg
    }
}